Home | Trees | Index | Help |
|
---|
Package pywikipedia :: Module catlib :: Class _Category |
|
object
--+ |Page
--+ | _Category
Method Summary | |
---|---|
Make a list of all articles and categories that are in this category. | |
Create a list of all pages in the current category. | |
Cache result of make_catlist for a second call | |
Returns true if copying was successful, false if target page already existed. | |
iscattitle(self,
title)
| |
True if the page except for language links and category links has less than 4 characters, False otherwise. | |
Create a list of all subcategories of the current category. | |
Create a list of all subcategories of the current category. | |
Inherited from Page | |
Constructor. | |
Pseudo method to be able to use equality and inequality tests on Page objects | |
Pseudo method that makes it possible to store Page objects as keys in hash-tables. | |
A more complete string representation | |
A console representation of the pagelink | |
A string representation in the form of a link. | |
A list of categories that the article is in. | |
The name of the page without the namespace part. | |
Returns a set of all user names (including anonymous IPs) of those who edited the page. | |
Deletes the page from the wiki. | |
Returns the character encoding used on this page's wiki. | |
True if the page exists (itself or as redirect), False if not | |
The wiki-text of the page. | |
If the page is a redirect page, gives the title of the page it redirects to. | |
Returns a list of pages that link to the page. | |
Loads the version history page and returns a list of tuples, where each tuple represents one edit and is built of edit date/time, user name, and edit summary. | |
Gives the wiki-images the page shows, as a list of pagelink objects | |
A list of interwiki links in the page. | |
True if the page is a Category, false otherwise. | |
| |
True if the page is an Image description page, false otherwise. | |
True if the page is a redirect page, False if not or not existing | |
Gives the normal (not-interwiki, non-category) pages the page links to, as a list of Page objects | |
The name of the page this Page refers to, in a form suitable for a wiki-link | |
Gives the number of the namespace of the page. | |
Replace the new page with the contents of the first argument. | |
Just like categories, but gives the categories including the part after the |, if any. | |
The name of the section this Page refers to. | |
| |
The site of the page this Page refers to, without : | |
Gives a list of template names used on a page (strings). | |
The name of the page this Page refers to, in a form suitable for the URL of the page. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value |
Method Details |
---|
_make_catlist(self, recurse=False, purge=False, site=None)Make a list of all articles and categories that are in this category. If recurse is set to True, articles and subcategories of any subcategories are also retrieved. Returns non-unique, non-sorted lists of articles, subcategories and supercategories. The supercategory list only contains the supercategories of this category, regardless of the recurse argument. This should not be used outside of this module. |
articles(self, recurse=False)Create a list of all pages in the current category. If recurse = True, also return pages in all subcategories. Returns a sorted, unique list of all categories. |
catlist(self, recurse=False, purge=False)Cache result of make_catlist for a second call This should not be used outside of this module. |
copyTo(self, catname)Returns true if copying was successful, false if target page already existed. |
isEmpty(self)True if the page except for language links and category links has less than 4 characters, False otherwise. Can return the same exceptions as get()
|
subcategories(self, recurse=False)Create a list of all subcategories of the current category. If recurse = True, also return subcategories of the subcategories. Returns a sorted, unique list of all subcategories. |
supercategories(self, recurse=False)Create a list of all subcategories of the current category. If recurse = True, also return subcategories of the subcategories. Returns a sorted, unique list of all subcategories. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Jul 03 17:07:36 2005 | http://epydoc.sf.net |